<template>
    <div>
        <van-field v-model="form.name" label='名字'/>
        选择课程：
        <select v-model="form.course_id">
            <option :value='i.id' v-for="i in course">{{i.title}}</option>
        </select><br>
        上传视频：<van-uploader :after-read='vedio_upload'/>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                course:[],
                form:{'vedio-url':''}
            }
        },
        methods:{
            get_course(){
                this.$axios.get('courseM').then(res=>{
                    this.course = res.data.list
                })
            }
        },
        mounted(){
            this.get_course()
        }
    }
</script>

<style scoped>

</style>
